porting to sink.js, for portability