ruby block arguement compatibility fix