realize some methods for message controller