fixed new avg_luck api