output.splitlines() maybe better