using io object with doc processor