Some initial coding work for chans
Move code related to settings file upgrade