modify to fit new version of request script