updated modules, removed "mkdir" commands, better error handling if server is unavailable