explicitly closing variables to warn on closing file
implementing some settings features