v1 able to output to textfile