use pushd and popd