added more debuggin code. This time for when the read is sucessful and when it's not