extrac the key value pairs form options hash