optimized messages module