fixed -o option so that it no longer print entire output as single line
removed saving on each segment - caused error