+ add flag as marker
+ add pause function