pre-merge
everything works

removed all debug prints, still need to do the writeup