support for 10.7
optimize layer speed with a shadow path