correctly creates temp dir...