utils for ruby