print hostname, small enhancements