added some basic migrate functions