new LSAD code handling in metadata generation