license + optimizations