handler: simplify flags input, finish stock command