keep variables and config in sync, added removeVariable