flag file isn't working :(