fix bug with v30 header handling
v30, fix session error handling, make t.py bomb on unexpected stuff