writing in temp dir in the project dir