attempting to hook up the uploading functionality