WIP: rename externalInput flag to $stateful