fix try/catch