rewrite message package