[parser] fixed some issues in connection with server, also deleted some useless clases.