add fuzz tester. tweak code for debugging