extend ru to deal with multiple files