add flag and date into version string