Globalization and the margins