reverse proxying fixes, thanks for bugreports DamnDam