moving code for combining data streams into new controller (apicombiner)