fixed bug where empty files were not created....