add method to get machine hostname