add trigger file function