TODO: consider supporting STAT