added hostname option