closing migration loopholes