logging and dropping pushd/popd