remove warnings on unused variables
avoid potential race condition on temp file creation
v 0.6.12
Added tag v0.6.12 for changeset 9d078072e603