added hostname flag