simplify and template file has to be a const now