code for multiple camera grab, temprized to avoid interferences