fix judge method shadowing attribute and add timeout and exception rescue