add publishInstall and logEvent