add ability to handle proxy protocol