cotinue working on UploadFile
organizational stuff
change MerkleCollapse to a standalone function