Secureless query

need to fix this and still problem with seperatable exit.