precompile pattern for env sanitization