base ruby stuff