move object md to the top level, and add validation for capabilities