moved to structures.  making cmdline work