store offsets instead of lengths and align to block boundaries
get rid of old script