make Scanner transient in the spout to make it serializable. we anyway recreate a scanner per batch