load data and templates from file.