added selector
fixed consistent_hashing to work with non-string keys