add parsing of rule selector