adding active_record support (wip)