added warning when public keys are missing