todo: support ag, format result.