use actual hostname
removed more debug statements