add log directory and tmp directory