fix package construction