fixed typo, added debug level to key store