changing anti-patter postinstall to prepublish