revise error handling
Change the name of working folder used for model