fix: BaseOffset etc are actually undefined, should use string like 'BaseOffset' or this simpler solution given here