fixed script for hosts