ignoring state
Works without last line; debug output