why is there this code? it is already in ruby bindings, that do exactly same. Please remove whole rescue.