add getxls,query and reset functions