Support for host config

Fixes #419