load ending offset from file
support for array files
changed up the lbx package
refactoring