move the file configurator out from core to file.c