get rid of exposed getDirs