compile def templates while processing, not parsing
remove break