tmp was being removed too early,
will build, but leaves cruft behind