use common metadata factory