read redis host just before connecting