using mktemp
Merge pull request #5 from Timosha/patch-1

using mktemp everywhere now