some improvement to bulk upload