init packages before config