cmd parsing, first draft