added metadata and schema behaviour