write workflow file two times