wrap init scripts in a condition