fix the xchan lookup tool