remove migration, add try-catch for contextprovider metadata