finish integrating with metadata module.