added cmdline viewing support