adding initial stub for uploads
Moved uploads to a function