misc changes for Ruby on Rails