add mutex at waiting for the response