fixed writeLines missing con