refactored how programs were handled by the package resource