handle EOF reads
prod build