improved sync in hosts script