fix binary discovery mechanism