added header mapping and websockets proxying, still cleanup needed