added single template, some fine work