added a final shift to deal with unparsed arguments/options