added BOF and EOF in packet format