EG: fix for intercepting file I/O + fix for monotonic seeks