template to support file path