make migrate iterate over all gemsets. cleaning code, update #2446