updated adding host dynamically