adds code to check if behind ELB for client IP