changed $ch.read to $ch.readFile