move automatic changelog code out