cleanup some metadata