moved couglink struct to its own file