added actual http endpoints
added waitOn for wait events