initial terminal writing