add avgcard and maxcard, fix start and stop for maxcrate and avgcrate