add async flow to make migrations faster