escaping custom rules