use instance_exec for calling batch block

instead of passing the controller reference to the block