cleanup
more argument parsing fixes
delete[] fix
manually set the initial discard period