sleep differently
fix file path for doneflag