working on how the upload behaves