precompile primary