move stream key duplication checking into formart timeseries function