skeleton of cairo plugin