tmp is changed to .tmp