initial upload and xml parsing