corrected before_install hook