improve handeling of svg internals