moved most code histories to single template