made state machine work with camera and hench thalamic input