hopefully prevent busy-looping when changing profile directories