the find_by_namepart method seems to have been removed, so I re-implemented it as a scope...