Economic development, foreign investment and the law door