fixed problem in get_acc_lines
added output_results
connection now ends