sorted and unique by code hash
better mktmp templates in run
implement wattsup option to run