add status flag and time flag