more work on the http handler