upgrade fixes
stdio fixes