added statistics and other updates