remove e.reason
added the length in check.py