added migration for old plans