add selector parser
selector parser bug fix
ws close