add the header for file open/close