removed debugging on ip_allowed function