add an optimization for the case where the src has no name