work in progress hack for conditional compiled template