updates for unclosed file warnings