maxl now uses templates