modified bulkadd script