refactor code: improve PushMsgs