template: put common template into one file for convenience