modified for upload csv & publishing