added support for pseudo classes #359