Three essays on migration