add postinstall hook