some funky ruby stuff because we can