restore ruby1.8 support