loader with cfg file