some work on uploading documents