fixes #12 (not working temporary file)