separated out API code into new github repo