avoids recompiling bundles when not necessary
added check against assignments to ports