update to use requests library