now automatically makes subdirectories as necessary if called for in the path