add some debug and cache flush controls