the add and remove commands now use the same code as base