verbose mode
correct some bugs