removed directory stack so that free space can be found anywhere