fixed issues with the parameters of send_request