added some newfile stuff