updated to user_spec and environment.rb