adding regex for username & workername put all globals in preferences.rb