diags and using IO.readline - syntax fix