layer extract compiler errors fixed.