invoke ruby properly, closes #2