creating file to a output dir is already working