bugfix - each method in rb script