save metadate for external data