fixed casting errors in BatchReactor. implemented state_wrangler interface for deploy inst