some prototype
move http server part to service