changed print to warning in findTemplate