major switch to ruby gem