correction bugs + style + hostname resolution