added tracking for last chain stat