ugly hack for ruby