extra check for setKeychain