fix metavars, args and missing options
implement concept of working set