this is wrong! you need to use the config.yml environment instead of the if