command line recognizes both domain names and ids (fixes #2)
rewrote portable string split
added missing domain name