some quick fixes to httpServer