key/value pair script implementation