hostname functionality added