made AbstractTemplate backward compatible as well