debugging barrier waiting issue