improvement of Template-Class
added ability to auto-load extensions