move option processing into Util.GetOpts