added getcards and addstat