refactor handler,move from message package to handling package.