fix warnings,Add handler for metadata update from boyang