auth failure check
refactor query handler map/table routing