fixed bug with packing hostname