make it work with older ruby