loading template from files