update metadata locally