ensure proper encoding/decodimg of values
add support for automatic index writes
refactoring CustomRow module