use better name for temp file
fixes #21