cleaning of ^M and advisor links