altered gAPI calls in MainCtrl to prepare for two streams