implemented the generic file loader. Reset after loading isn't working yet.