initial code for handling uploads
cosmetic changes