started outlining file creation code