converting all callbacks to streams