forked out api to it's own file