added dynamic command definition plus template