minor tweaks to bulk loader code.