add support for remote setting of flags