a work around for ruby crash, perhaps..