added singleton for ruby