fix bugs: when options were added, the program would carsh with SEGMENT ERROR