added --detailed switch