fixed a bug where oldEnd gave the following error Object #<Object> has no method '_implicitHeader', the context this was not available in fs.readFile