fixed issue with repaint and issue with clearing tmp directory when multiple files are run at that same time
updated latest from master