added support for range serialization