fix initializing with a host string

closes #17