Refactor cmd meta

lets review and discuss changes needed in this pullreq. what else do we need to implement?