lib for a bulk insert