after much fighting, added a simple rolling ave