In the Austro-Hungarian Empire which included parts of what is now Poland and Ukraine, only "civil" marriages were considered "legal." If your ancestors had only a religious marriage and not a civil one, the children would have to take the mother's name, since the marriage was not sanctioned by the government. This happened to my grandfather and his brother in the 1880's. Annette Weiss New York City