update paths and metadata