cleaned up file upload