Title: Trade structure and endogenous restrictions