parse flag debug

fix flag layout
aded datatoken