updated for kafka 0.8.1.1