moved connection handler to webserver