changed from keyvalpair to keyhashvalpari