re-organizing LLNMS-CLI code