Adding safe make_dir util func
Adding output funcs for fields