work with active record models, relations, and the like