writing masteruploader