Rev security fixes