fix some bugs in the cli
changes to support series generation