add mechanism of uploading data