refactored to webapi project

hopefully nothing broke