add subscribe response & publish packet de-/en-coder