debug mkdir and pki problems