move to pre_install()