more rails 3 compatibility issues