wip: Moved Dat file loading to separate module