temporary workaround for onData (which is segfaulting)