simplify message APIs refs #77

This commit just refactor message APIs.