add __dir__ function to autocmplite
add exception mapper
set jsonrpc error: message = exception message