can now handle multiple sets of join files