Mir Jafar , Commander of Alivardi , freed Syed Ahmed and his family . Alivardi 's commander Mir Jafar freed Syed Ahmed and his family . Alivardi 's commander Syed Ahmed freed Mir Jafar and his family .