add support for x-forwarded-for header