strip httpserver
switch to flask