efficiency improvements in generation of harnesses