replaced magic string in template reader