hosts: support for adding multiple hosts at once