refactor message manager interface.
refactor message interace.