bugfix
changed serverPath to localPath
changed order of arguments in mkdir_fix function
changed name of methods