add more where clause interpreting, use debug to show debugging lines