solve buffer lifetime problem in Bulkload