added tmp dir. closes #1