edits and tmp rename