agreeing upon custody out of court