debug file creation