add localization support

Wouldn't tuples be simpler?