update add command for new config file structure

also includes:
  * upgrading old configs
  * fixing the remove command