add 2 averaging modes for sandbox