Fix a bug to prevent a few Context errors
Make type query in display mode
Consume stdout/stderr to prevent deadlock. Print only stdout
minor