HTTP constant fixes and emulation related stuff WIP