added type safe alternative for basepackages and changed basepackage to basepackages to enable on different packages