add rosetta, minor template fixes