populating link flags properly