upload data and codebook