svg reader optimizations working