fix file loading for the main driver