moved renamepackage func to new script