hacking ruby to work right - needs better fix