implement class and id parser