prepare to add support for activerecord