refactor pear
intoduced CException for banana-tool