separated loader and generator