final adjustments for module build