changed hashtable to IEnumerable<KeyValuePair<string, object>>