rewrite the subscribe event message handler