added support for css classes as selectors