properly rename completed files