request module calls are now in own function