migrated server to flask
moved to flask