Fix issue: executeBatch
use a neat way to handle Topology and something