fix prima for toolchain