add basic support to parse pseudo class