return the list of matched commands from accepts

also added precondition to next/2: only allowed if not accepts_this