added read.close() fix maybe, prints for luck