starting to debug
more debugging
more debugging
another round of debugging, still has ui and state update issues