fixed the hostname, i was slicing the incorrect part!