make kv port variable