files added for functions common between gui and cmdline programs