added support for bulk inserts