script needs to be tested manually with the various flags in place
script needs to be tested manually with the various flags in place