add legacy statistics handling
fix