replace deprecated reflection Manifest with ClassTag