add assert and start buffer