as above, until EOF