added logging for read