move shit out of api directory.