add except and assert