use window consistently, add langKey to statistics