pattern matching and simple start stop