fixed request calls which do not work with newer version of request