add a flag and fix start end time bug
fix a typo error