added file buf print statements