fixed exception bug, added code 404