update warning messages

It wasn't clear where the invalid keys warning was coming from, and it was missing the caller info.
Fixed some other messages as well.