fixed getHostname. Seems to work nicely"