Pass host, not just config to resource constructor