Helping a tiny shorebird come back from the brink