added usb webcam handling, only get gid/uid once at start