token flag stuff