primitive k-v parsing