made generateManifest more generic