some cleaner code, started listDir, created makeDir