file uploads now working
refactoring