added support for hostname customization