wait for initial deletion of flag file