refactorings @ gravar & reproduzir scripts