added isWhiteListed ip method 7/24/14