support hosts defined within cmd template