added some before_install behaviour