added hostname override. Fixes #256.