options: move global option parsing to system/