module dependencies are now handled better