poc interaction. wai query datatype is stupid. cleanup required