encapsulation should happen at preinstall time