add cp script on debug for resetperms