cleanup verify config
fix checking env