add global loops limit