miscellaneous ruby stuff