modified hostsan.rb