added support to metadata_expire.