add new feature detection based on rules, cleanup