try to fix up ruby magic