:musical_score: code changes to support ruby 1.8.7