added IO#to_i
IO handling