added commandline switch for external templates