added simple host based auth for agent