codeRewrite and add new packets