added textIO class for later use