make error to public, fix bool print bug, add some print test