create tmp files in main-view