add IsTrustedIP method