debug opt flow