changed logging to distinguish between removal of invalid links