convert back to http.HandlerFunc