migrate active flag