handle kafka producer configuration properly