adding check on hostname