quick fix for the updategotfiles function