adding the ability to choose directory