adding kaflib and offsets