fixes and created an http server for testing