some demo resource optimizations