added function to get a response by corresponding command id