add auto templates generation feature