implement template commands