improve error handling
FIX: set the rotation of the endCam correctly