Removed stray debugger statement
Better error messages for context/segment mismatch