unnecessary sudo-commands removed + mv error fixed