moved code into api directory