moving primitives to preambles