added debugging to monitor x-forwarded-for headers