fragments: -o writes output to file