wrap config in if conditional