added possibility to specify domains using command line