fixing rename os call