added method to retrieve the offsets and solved a bug that made all offsets after the 2nd block invalid