refactored all the message and identity old calling conventions
Merge pull request #287 from gbin/refactor-warnings

refactored all the message and identity old calling conventions