add checks for minimal metadata
Refactor conversion service