tidy up links stuff