use bulk insert
fixed #564