add before_install hook