adding logic to keep metadata the same

makes docker cache happier