remove min_rank and setup for cost/rule cleanup