More ruby backend cleanup