first cut of kdb stream protocol