introduced sleep before reading response, otherwise response might not get read