removing left-over use of the cdir variable