working on fixing upload