added support for proxy protocol