use out-string instead of reading from file