add code for getting the primary interface