configurable host and port, fixes #1