add with_id_from and with_field_from methods