Improved safety for autonomous vehicles