add wrapper method for uploading