Custody issues typically arise in proceedings involving dissolution of marriage, as well as in paternity, annulment, and other legal proceedings in which children are involved. In most jurisdictions the issue of with which parent the child will reside is determined in accordance the best interests of the child standard. In rare cases custody may be awarded to somebody other than a parent, but only after the fundamental right afforded to biological parent's has been overcome or where the third party has an established role that is in the manner of a parent. When a child's parents are not married it is necessary to establish paternity before issues of child custody or support may be determined by a court.