better detail handler