improved balde-template-gen interface