fixed trailing local.next(..) in main controller