update security and metadata