added clear api stats feature