updated client to not use request module for client side code