allow path to be nil