make sure the variables are available in all cases