fixes to http processing
fixes to exception handling