clean up old versions of entities