can read different format of template and check if the template is right