improve parsing

better detection of ruleset / property