reworked handling new http connections