host and password fields are optional