added callbacks to stream start and stop