minor updates to support rails 2