support record directive