updated to split fileloader from config