moved from before_install to install