improve get_statistics command