stuff to debug and fix