fixes to quit and reader