new legacy fix for string io