edited initializer/devise to check for production