modify the http handlers