attempt to reduce memory footprint of migration