minor updates

updated file settings and updated logic for twilight