fix some bugs with requests