added exception, for selectWorkDir()