added to fileconfig function