trying to fix windows stdio stuff