allow define host in factory and redefine host if connection already initialised