hm. maybe this stops the EOF errors