added some stuff for ruby