further preparations for svg drawing