possible optimizations for the Wave Lib