added: template autodetection #4