removes allocation + add dylib and rlib