fix bugs with requests