add get_by and find_by to resources