add controll logic for sendRequest