code changes for bulk upload