moved constants to base.rb