fix for multi-binaries