more fixes for add/remove, and allow setting of debug mode via the config file