Add a local file and cleaned up the settings