optionally take :hostname. Closes #31.