rewrite of detecting all chains; not it will be used any time soon
submit toggling when flow or cc in submit approval