some weird active record problems