fix createBin in the bulk uploader + minor fixes