performance add flag to GetData