mid implementation for goals pre rails upgrade