debug #query_box
minor improvements
escaping xsel strings