missing error handling for loading template