more reference optimization from binaries