clean up links etc.