fix export from c-prepare