added createPrivateDirectory