fix broken http endpoints