fixed issues with plugin and migrate methods