add prepublish processing