tikz engine implementation, first draft