move the api calls to their own package