added support for weighted block queries and harmonic energy mixing