use path as name if no name was given