fixes to reverseproxy