added proper migration for older plans