proper handling of .class selectors