added the rest of the migrate stuff