implemented logging and http server