fix signing/verifying of messages