fix specs, support record_id