fixes to creation of Directory
remove debugging printlns