adding create_dir to header file