find out how to upload files, just need some cleaning