better logging

better warning about not having a key