make allowedPlans actually work