ripper stability and perfomance fixes