added log and temp directories