added hisdeLog and showLog methods to hide expected exceptions