stream.js - offset check