better handling of cameraID