base for internal httpserver
updated for the new httpserver (work in progres_)