add util for active_record