tweaked the way the HttpHandler manages handlers