setting for ruby and small fix