after-init hook and package config