moving API call to a new folder