fix comment & generalize check for non-physical ports