re-revert messaging to use :state instead of :rails_env. re-fixes #1