seperate initialisation from frame grabbing