fixed stupid reference bug
refactor and beginning to change the upload process