legacy support for multiple loop