cleanup ruby 1.8.5 compatibility (deprecated)