removed activerecord dependency