changes to use requests 1.x