rewired the read loop again