before this change, we had to pass state into the continuation handler like so..