example code for bulk loading