per-board templates + various fixes