#63 - map for temporary files added and concurrency problem solved