added two calls
added, uses buf, less writes
added line clrf