add two new options output file and keep alive connection