added in a stream handler as a way of creating datasources and retreiving data from them