clear cache and temp files
fix runtime exception when creating directory