zink: move format-checking to separate source