complete get_stats support